<script setup>
import ChildComponent from "./ChildComponent.vue";

const click = (n) => {
  console.log("监听到了子组件的方法执行", n);
};
</script>

<template>
  <h1>父组件</h1>
  <child-component @childClick="click" />
</template>
